import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import drugmage from '@/components/neupha/drugmage'
import doc01 from '@/components/neudoc/doc01'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path:'/neudoc',
      name:'医生模块',
      component:doc01,
      children:[{
        path:'/neudoc/doc01',
        name: 'doc01',
        component:doc01,
      }]
    },
    {
      path:'/neupha',
      name:'药房模块',
      component:drugmage,
      children:[{
        path:'/neupha/drugmage',
        name: 'drugmage',
        component:drugmage,
      }]
    }
  ]
})
